package com.gitee.hermer.engine.jars.dependent.dsm.client.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.dependent.dsm.domain.EngineProperties;

@PropertySource(EngineConstant.ENGINE_CONFIG_PROPERTIES_CLASS_PATH)
@Component
public class DsmClientProperties extends EngineProperties {
	
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XA_DATASOURCE_DSM_SERVICE_IP)
	private String dsmServiceIp;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XA_DATASOURCE_DSM_SERVICE_PORT)
	private Integer dsmServicePort;
	
	public String getDsmServiceIp() {
		return dsmServiceIp;
	}
	public Integer getDsmServicePort() {
		return dsmServicePort;
	}
	public void setDsmServiceIp(String dsmServiceIp) {
		this.dsmServiceIp = dsmServiceIp;
	}
	public void setDsmServicePort(Integer dsmServicePort) {
		this.dsmServicePort = dsmServicePort;
	}

}
